const Koa = require("koa");
const { koaBody } = require("koa-body");
const router = require("./app/router");
const bodyParser = require("koa-bodyparser");
const logger = require("./app/middleware/logger");

const app = new Koa();

app.use(koaBody());
app.use(logger());
app.use(bodyParser());
app.use(router);
console.log(11111);
app.listen(8000, () =>
  console.log("server listening on to http://localhost:8000")
);
